package com.zygh.policeasset.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zygh.policeasset.mapper.AssetsManagementFileMapper;
import com.zygh.policeasset.pojo.AssetsManagementFileDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/AssetsManagementFileService.class */
public class AssetsManagementFileService {
    @Autowired
    AssetsManagementFileMapper assetsManagementFileMapper;

    public PageInfo findAll(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo<>(this.assetsManagementFileMapper.findAll());
    }

    public Integer add(AssetsManagementFileDto params) {
        return this.assetsManagementFileMapper.add(params);
    }

    public Integer remove(int id) {
        return this.assetsManagementFileMapper.remove(id);
    }
}